<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>友链编辑</title>
    <link rel="shortcut icon" href="/static/img/Head.png" type="image/x-icon"/>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="/static/css/back_article_comm.css">
    <style>
        .panel form.bs-example > div {
            margin: 10px 0;

        }

        /*popover START*/
        input.disabled {
            background-color: #fff !important;
        }

        .popover.top {
            margin-top: -7px;
        }

        .popover {
            font-size: 10px;

        }

        .popover-content {
            padding: 3px 10px;
            color: #f00;
        }

        /*popover END*/
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="panel panel-warning">
        <div class="panel-heading">编辑友链</div>
        <div class="panel-body">
            <form class="bs-example bs-example-form">
                <div class="col-lg-6 col-md-6 col-sm-12">
                    <div class="input-group">
                        <span class="input-group-addon">网站名称</span>
                        <input type="text" id="site_name" class="form-control" placeholder="请输入网站名称..."
                               data-placement="top">
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">
                    <div class="input-group">
                        <span class="input-group-addon">网站地址</span>
                        <input type="text" id="home_url" class="form-control" placeholder="请输入网站地址..."
                               data-placement="top">
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">
                    <div class="input-group">
                        <span class="input-group-addon">favicon</span>
                        <input type="text" id="favicon_url" class="form-control" placeholder="请输入favicon地址.."
                               data-placement="top">
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">
                    <div class="input-group">
                        <span class="input-group-addon">描述信息</span>
                        <input type="text" id="descr" class="form-control" placeholder="请输入描述信息..."
                               data-placement="top">
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">
                    <a class="btn btn-primary submit" data-val="saveAndPublish">保存并发布</a>
                    <a class="btn btn-primary submit" data-val="save">仅保存</a>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="modal-backdrop" style="display:none;background-color: rgba(0,0,0,0.5)"></div>
<script type="text/javascript" src="/static/plugins/jQuery/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
        integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>
<script src="/static/plugins/layer-3.1.1/layer.js"></script>
<script src="/static/plugins/wangEditor-3.1.1/wangEditor.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.5.6/jquery.nicescroll.js"></script>
<script src="/static/js/back_friendLink_edit.js"></script>
<script>
    $(function () {
        loadDefault();//加载默认数据
        $("a.submit").click(submitFn);//提交
    });
</script>
</body>
</html>